package com.yixun.lbx.mapper.company;

import com.yixun.entity.DiQu;
import com.yixun.lbx.entity.YxProCompany;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.HashMap;
import java.util.List;

@Mapper
public interface CompanyMapper {

    List<YxProCompany> getCompanyListByPage(HashMap<String, String> map);

    Integer getCount();

    YxProCompany getCompanyByIdOrNameOrCode(YxProCompany company);

    int insetCompay(YxProCompany company);

    int updateCompany(YxProCompany company);

    int deleteCompany(HashMap<String, Object> map);

    List<String> getCodeById(HashMap<String, Object> map);

    int setUserStatus(HashMap<String, Object> map1);

    String selectDqNameByid(String dqid);

    List<YxProCompany> getIsDeleteListByPage(HashMap<String, String> map);

    Integer getIsDeleteCount(HashMap<String, String> map);

    Integer enableCompany(HashMap<String, Object> map);

    List<YxProCompany> getSearchListByPage(HashMap<String, String> map);

    String getQyNameByQyId(String qyId);

    String getMaxCode();
    
    List<DiQu> getChildDiquListByDq3Name(@Param("area") String area);
}
